public class User {

	public static class Info {

		private String infoDetails;

		public Info(String infoDetails) {

			this.infoDetails = infoDetails;

		}

		// generate to string > object default > Source > Generate to string
		@Override
		public String toString() {
			return "Info [infoDetails=" + infoDetails + "]";
		}

	}

	private Info info = new Info("Info about user");

	public Info getInfo() {
		return info;
	}

	public void setInfo(Info info) {
		this.info = info;
	}

}
